package com.zb.service;

import com.zb.pojo.Book;
import com.zb.pojo.Page;

import java.util.List;

/**
 * @author zb
 * @create 2021-03-04 21:08
 */
public interface BookService {

    public int addBook(Book book);

    public int deleteBookById(Integer id);

    public int updateBook(Book book);

    public Book queryBookById(Integer id);

    public List<Book> queryBooks();

    Page page(int pageNo, int pageSize);

    Page<Book> pageByPrice(int pageNo, int pageSize, int min, int max);
}
